package cn.dcw.pethome.basic.service;

import cn.dcw.pethome.basic.query.BaseQuery;
import cn.dcw.pethome.basic.util.PageList;

import java.util.List;

public interface IBaseService<T> {
    //增加
    void add(T t);

    //删除
    void delete(Long id);

    //修改
    void update(T t);

    //查询所有
    List<T> findAll();

    //分页查询
    PageList<T> pageData(BaseQuery query);

    //批量删除
    void batchDel(Long[] ids);
}
